#include <iostream>
#define SIZE 50

using namespace std;

int an[SIZE], n, b, i;

int main()
{
	int ok = 0;
	cout << "n = ";
	cin >> n;
	cout << "b = ";
	cin >> b;
	
	for (i = 0; i < n; ++i)
	{	
		cout << "an[" << i << "]= ";
		cin >> an[i];
		if(an[i] == b)
		ok = 1;
	}
	if (ok)
		cout << "YES";
	else cout << "NO";
	
}